CC=g++
CFLAGS=-Wall -ggdb -D_LARGEFILE64_SOURCE

all: libSbNet.o libSbNet.so.1.0.1  testReadNet.o


libSbNet.o: libSbNet.c
	$(CC) -c -fPIC -I /opt/lcg/include/ -I /opt/lcg/include/lfc $(CFLAGS) $< 

libSbNet.so.1.0.1: $(OBJECTS)
	 $(CC)  $(CFLAGS) -o libSbNet.so.1.0.1 -shared -Wl,-soname,libSbNet.so.1 libSbNet.o -lc
 
testReadNet.o: testReadNet.cpp
	 $(CC) $(CFLAGS) -o testReadNet -lconfig++ -lSbNet -llcg_util -I/opt/lcg/include/ -I/opt/lcg/include/lfc -L/opt/lcg/lib64/ -L. $<

clean:
	rm -rf  libSbNet.so.1.0.1 libSbNet.o testReadNet.o testReadNet
